<?php
	include_once dirname(__FILE__).'/Authentication/CurrentClient.php';
?>

<div class="header">
	<div class="left-side">
		<img src="./images/logo2.png" />
	</div>
	<div class="right-side-right">

	
	<?php 
		$sessionId = session_id();
		if (!isset($sessionId))
			session_start();
		$LoginPageUri = "{$RootDirectoryUri}/Authentication/GoogleLogin.php";
		if(isset($_SESSION[USER_ID_KEY])) {
			$thisUser = unserialize($_SESSION[USER_ID_KEY]);
			print "<p><strong>{$thisUser->email}</strong></p>";
			print "<a class='logout' href=".$LoginPageUri."?logout>Atsijungti</a>";
		}
		else {
			print "<a class='login' href='$LoginPageUri'>Prisijungti</a>";
		}
	?>		
	</div>
	<div style="clear: both;"></div>
</div>